{"componentChunkName":"component---src-templates-landing-page-template-tsx","path":"/smart-portions-hpn","result":{"data":{"contentfulLandingPage":{"id":"ca77a453-7934-566d-99c7-48f2040dd491","__typename":"ContentfulLandingPage","name":"FS Preference - Smart Portions Landing Page (HPN version)","pageSections":[{"__typename":"ContentfulSimpleJumbotron","id":"acf264d7-9e20-586c-9a2e-4329b6325a78","image":{"id":"4f67986c-cf0c-5383-a4d9-5369bd2391df","__typename":"ContentfulResponsiveImageSet","alternateText":"Smart Portions Banner Image Set","small":{"id":"a4bf5777-41b9-5501-b5b8-29dc678fac62","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/72UluEkJsFTCZNaXuztUsv/ea19be7bd6f49d8bbdec64a4ecb976e6/FS_Smart_Portions_Jumbotron_S.jpg"}},"medium":{"id":"fe0edc75-4477-5951-8ddb-35a07ede8b13","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2qMDyUBJ8wby14iZLLTbCG/f7fd9b8f24f2d1c26468cdef7ae3eace/FS_Smart_Portions_Jumbotron_M.jpg"}},"large":{"id":"5a8aa33a-5283-54b7-98fd-fae55e1eca0d","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/hpRfBZqLy9N8pYu3Zp6yE/ca5f3d6c2f565b1e323646eec2dfc350/FS_Smart_Portions_Jumbotron_L.jpg"}}},"link":null,"scrollTarget":{"__typename":"ContentfulPageSection","id":"9b768a96-be9f-58f9-a5e3-c3e6d0e783b5"}},{"__typename":"ContentfulPageSection","id":"d0d63af2-b866-555c-8177-efebc0d4bc7a","title":"We've got your patients covered!","childContentfulPageSectionSubtitleTextNode":{"subtitle":"These meals are here to help patients eat real food while on a weight loss journey. Developed by our team of chefs and dietitian-approved, our meals are nourishing and designed for smaller appetites."},"backgroundColor":{"colorHex":"#F4F5FB"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulProductSelectorTabset","id":"092259f5-3356-506d-8e52-6ffa4b47cd93","productSelector":[{"__typename":"ContentfulProductSelector","id":"2b2efd1b-e810-54c4-95a2-45c033f7b5f2","brand":"FS","heading":"Smart Portions Meal Plan","displayType":"Proof Points","internalName":"FS Product Selector (Proof Points - GLP1)","nightPeopleSectionHeading":"Select your plan","preferencePreSelectedOption":"FSGLP1","preferenceSectionHeading":null,"primaryCallToActionText":"Take the First Step","showBrandCampaign":false,"adminCampaignId":null,"showPromoMessaging":false,"enrollToCampaign":false,"hideRecipeCarousel":true,"proofPoints":[{"title":"Right-sized portions","description":"Nutrition in every mouthful - perfect for a smaller appetite.","image":{"id":"fad9bd14-c7de-5a0a-9c44-35f9f36e8532","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/mT80mCfSqCjmpZcYWXUXo/df9ec787daf3ad165298b9d479ec7daa/FS_GLP1_icons_Right-sized_portions.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"title":"Real food","description":"Premium proteins, quality carbs and optimal veggie bulk for a balanced plate.","image":{"id":"bfc789f4-3c94-55fb-8d73-81f0002bcd6e","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1eRvppgev15Lx4lc9O4iPx/17a93bac7ce018597637d993338294c4/FS_GLP1_icons_Real_food.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null},{"title":"Protein packed","description":"Meals with 25-40g per serve to help you meet your protein requirements.","image":{"id":"70ef2fab-afc0-5573-b11e-5941de2c3325","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/4PuD0C8zzJVgEhhG16219q/6b47834624e01cde3a226d013d41f322/FS_GLP1_icons_Protein_packed.svg"}},"color":null,"cardType":"Small","button":null,"alignment":null}],"excludePreferencesFromInWeekSales":null,"recommendedServings":null,"useNewOrderForm":true,"productCollectionCode":null,"groupedSelectorHeading":null,"groupedSelectorSubHeading":null,"groupedSelectorBadge":null,"groupedSelectorBadgeColour":null,"groupedSelectorIcon":null,"recipeCarouselPosition":"Above","recipeCarousel":{"id":"d3539ba7-811e-5612-96f6-5a72ff8d2697","__typename":"ContentfulRecipeCarouselV2","internalName":"[Product Selector] Generic Recipe Carousel with Macros ","productSku":null,"heading":null,"subHeading":null,"isRecipeCardClickable":false,"showDeliveryWeekSelector":true,"showPreferenceSelector":false,"showBackground":true,"rowsToDisplay":1,"showRecipeNames":true,"showSurchargeRecipes":true,"showRecipeBadges":false,"showRecipeMacros":true,"callToAction":null,"backgroundColour":null,"recipeOrderValues":null}}]}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulTwoColumnSection","id":"75469d55-e223-59ba-9ead-d6b88002c08e","title":"Why choose Fresh Start Smart Portion meals? ","imageOnLeftLayout":true,"childContentfulTwoColumnSectionTextTextNode":{"text":"Our purpose is to help Aotearoa New Zealand eat and live well.  \n\nWith this meal range, we’ve focused on quality nutrition from whole foods in every mouthful. Each meal combines a smaller volume of food, with quality proteins (25-40g per serving), quality carbs and a variety of whole foods ingredients that contribute dietary fibre. We’ve also considered fat, sodium (salt) and vegetable content when developing each meal. \n\nChoose from 3, 4 or 5 nights of meals, with options for one or two people. We’ll deliver the ingredients you need to your door, making it easier to prepare delicious, balanced dinners at home. "},"images":[{"id":"c44488d8-3183-538b-b013-1c7c82c9efed","__typename":"ContentfulResponsiveImageSet","alternateText":"GLP-1 plate image set","small":{"id":"f63c0461-f51e-538c-b93b-5a826f71046a","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2ZCUGvvfv6lHv2joSXqlqc/6c8019071cdc525f1ddf977d83785783/glp1_image_S.jpg"}},"medium":{"id":"549cf8fe-18d6-5d5c-9d73-6ebd3dbbf015","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/4kizAOYGabOSrttxHr9OVW/8a5106018d42c852140b973557f2a65d/glp1_image_M.jpg"}},"large":{"id":"0449b052-a41d-5a13-be99-1b41aa1b7807","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/1h30kEF5gtUifX6tGDp6cK/9e4286add64c30c865d56252d9f06d41/glp1_image_L.jpg"}}}],"callToAction":null,"backgroundColor":null,"textAlignment":null,"textColor":null,"skewed":null},{"__typename":"ContentfulPageSection","id":"5efcdd63-f4a2-56ef-8612-2e33c639f656","title":"Frequently asked questions","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F4F5FB"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulFaqCard","id":"73710196-82e5-5edb-a6e6-40c2966c053b","question":"What are Smart Portion meals?","answer":{"answer":"Our Smart Portion meals are small, balanced, protein-packed meals designed by our chefs and in-house nutrition team to deliver quality nutrition in every mouthful. They combine premium proteins, whole food ingredients and a variety of flavours in meals that are satisfying without being overly large. We’ve focused on nourishing, comforting meals that aren’t too rich, fatty or spicy. The result is a collection of delicious, easy-to-prepare meals. If you’re experiencing a reduced appetite or have concerns about getting the nutrition you need, speak with your healthcare professional or dietitian for personalised advice."}},{"__typename":"ContentfulFaqCard","id":"20b1e3ac-d03d-5fe4-8b8d-7c9067f2e67d","question":"What nutrition guidelines do Smart Portion meals follow?","answer":{"answer":"Our Smart Portion range has been developed with our in-house culinary and nutrition expertise.  Each meal provides 25-40g protein from whole foods like fish, seafood, chicken and red meat. Meals contain quality carbs like wholegrains, legumes, and starchy vegetables and include 1-2+ serves of veggies per plate. We’ve considered the overall balance and volume of food on the plate. Recipes range from 250-450 calories per plate, giving you the flexibility to pick and choose meals that best suit your appetite and needs."}},{"__typename":"ContentfulFaqCard","id":"cfae20b8-b00d-5275-a152-38c94bec1d6a","question":"Who are Smart Portion meals designed for? ","answer":{"answer":"Smart Portion meals offer  portions for people who prefer or would benefit from a smaller volume of food. This may include people whose appetite has reduced, due to medication such as GLP-1s, some weight management approaches, ageing or other life circumstances. As these meals contain less energy than our regular Fresh Start meals, they may not meet everyone’s nutritional needs. If you have ongoing appetite changes or specific dietary needs, speak with your healthcare professional or dietitian for personalised advice.\n\nOur regular Fresh Start range may be a better fit if you prefer larger portions.\n"}},{"__typename":"ContentfulFaqCard","id":"1a6e20da-b44e-5087-8950-f3cdda52984e","question":"What nutrition information do you provide?","answer":{"answer":"For every recipe, we show you full nutrition information including the calories/kilojoules, protein, total fat, saturated fat, carbohydrate, sugars and sodium per serve. You can compare and choose the best option for you. For every ready meal we show you the dietary fibre too. Please note our per serve nutrition information is based on standard produce sizes and at times there may be variation or changes (e.g. you may receive different sized potatoes or carrots week to week, or variations in produce due to availability). This may impact on the volume of food on your plate and how full you may feel."}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"57f598ca-a25a-57bf-9450-13c33d3f86a5","title":"Join our Health Professional Network here","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#F9F3EA"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulRenderRawHtml","id":"8869f009-4650-5086-84b7-ab930c402d64","title":"Mailchimp subscribe form","html":{"html":"<div id=\"mc_embed_shell\">\n      <link href=\"https://cdn-images.mailchimp.com/embedcode/classic-061523.css\" rel=\"stylesheet\" type=\"text/css\">\n  <style type=\"text/css\">\n        #mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 600px;}\n        /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.\n           We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */\n</style>\n<div id=\"mc_embed_signup\">\n    <form action=\"https://myfoodbag.us11.list-manage.com/subscribe/post?u=b2b2f55ddf83beb92d2e6fd58&amp;id=4d4be473ce&amp;f_id=00c6a9e0f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\">\n        <div id=\"mc_embed_signup_scroll\"><h2>Subscribe to our newsletter!</h2>\n            <div class=\"indicates-required\"><span class=\"asterisk\">*</span> indicates required</div>\n            <div class=\"mc-field-group\"><label for=\"mce-FNAME\">First Name </label><input type=\"text\" name=\"FNAME\" class=\" text\" id=\"mce-FNAME\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-LNAME\">Last Name </label><input type=\"text\" name=\"LNAME\" class=\" text\" id=\"mce-LNAME\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address <span class=\"asterisk\">*</span></label><input type=\"email\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" required=\"\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-ROLE\">Role </label><select name=\"ROLE\" class=\"\" id=\"mce-ROLE\"><option value=\"\"></option><option value=\"GP\">GP</option><option value=\"Nurse\">Nurse</option><option value=\"Nurse Practitioner\">Nurse Practitioner</option><option value=\"Dietitian\">Dietitian</option><option value=\"Nutritionist\">Nutritionist</option><option value=\"Health Coach\">Health Coach</option><option value=\"Practice Manager\">Practice Manager</option><option value=\"Specialist\">Specialist</option><option value=\"Other\">Other</option></select></div><div class=\"mc-field-group\"><label for=\"mce-ORG\">Organisation </label><input type=\"text\" name=\"ORG\" class=\" text\" id=\"mce-ORG\" value=\"\"></div><div class=\"mc-field-group\"><label for=\"mce-REGION\">Region </label><select name=\"REGION\" class=\"\" id=\"mce-REGION\"><option value=\"\"></option><option value=\"Northland\">Northland</option><option value=\"Auckland\">Auckland</option><option value=\"Waikato\">Waikato</option><option value=\"Bay of Plenty\">Bay of Plenty</option><option value=\"Gisborne\">Gisborne</option><option value=\"Hawke's Bay\">Hawke's Bay</option><option value=\"Taranaki\">Taranaki</option><option value=\"Manawatū-Whanganui\">Manawatū-Whanganui</option><option value=\"Wellington\">Wellington</option><option value=\"Tasman\">Tasman</option><option value=\"Nelson\">Nelson</option><option value=\"Marlborough\">Marlborough</option><option value=\"West Coast\">West Coast</option><option value=\"Canterbury\">Canterbury</option><option value=\"Otago\">Otago</option><option value=\"Southland\">Southland</option></select></div><div class=\"mc-field-group\"><label for=\"mce-SPECIALTY\">Specialty </label><select name=\"SPECIALTY\" class=\"\" id=\"mce-SPECIALTY\"><option value=\"\"></option><option value=\"Diabetes\">Diabetes</option><option value=\"Weight Management/Bariatrics\">Weight Management/Bariatrics</option><option value=\"General Practice/Primary Care\">General Practice/Primary Care</option><option value=\"Other\">Other</option></select></div>\n<div hidden=\"\"><input type=\"hidden\" name=\"tags\" value=\"9270345\"></div>\n        <div id=\"mce-responses\" class=\"clear\">\n            <div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"></div>\n            <div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"></div>\n        </div><div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\"><input type=\"text\" name=\"b_b2b2f55ddf83beb92d2e6fd58_4d4be473ce\" tabindex=\"-1\" value=\"\"></div><div class=\"clear\"><input type=\"submit\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" value=\"Subscribe\"></div>\n    </div>\n</form>\n</div>\n<script type=\"text/javascript\" src=\"//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js\"></script><script type=\"text/javascript\">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[0]='EMAIL';ftypes[0]='email';fnames[7]='ROLE';ftypes[7]='dropdown';fnames[8]='ORG';ftypes[8]='text';fnames[10]='REGION';ftypes[10]='dropdown';fnames[9]='SPECIALTY';ftypes[9]='dropdown';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';fnames[5]='BIRTHDAY';ftypes[5]='birthday';fnames[6]='COMPANY';ftypes[6]='text';}(jQuery));var $mcj = jQuery.noConflict(true);\n    // SMS Phone Multi-Country Functionality\n    if(!window.MC) {\n      window.MC = {};\n    }\n    window.MC.smsPhoneData = {\n      defaultCountryCode: 'NZ',\n      programs: [],\n      smsProgramDataCountryNames: []\n    };\n\n    function getCountryUnicodeFlag(countryCode) {\n       return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))\n    };\n\n    // HTML sanitization function to prevent XSS\n    function sanitizeHtml(str) {\n      if (typeof str !== 'string') return '';\n      return str\n        .replace(/&/g, '&amp;')\n        .replace(/</g, '&lt;')\n        .replace(/>/g, '&gt;')\n        .replace(/\"/g, '&quot;')\n        .replace(/'/g, '&#x27;')\n        .replace(/\\//g, '&#x2F;');\n    }\n\n    // URL sanitization function to prevent javascript: and data: URLs\n    function sanitizeUrl(url) {\n      if (typeof url !== 'string') return '';\n      const trimmedUrl = url.trim().toLowerCase();\n      if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) {\n        return '#';\n      }\n      return url;\n    }\n\n    const getBrowserLanguage = () => {\n      if (!window?.navigator?.language?.split('-')[1]) {\n        return window?.navigator?.language?.toUpperCase();\n      }\n      return window?.navigator?.language?.split('-')[1];\n    };\n\n    function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return null;\n      }\n\n      const browserLanguage = getBrowserLanguage();\n\n      if (browserLanguage) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === browserLanguage,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      if (defaultCountryCode) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === defaultCountryCode,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      return smsProgramData[0];\n    }\n\n    function updateSmsLegalText(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      const programs = window?.MC?.smsPhoneData?.programs;\n      if (!programs || !Array.isArray(programs)) {\n        return;\n      }\n\n      const program = programs.find(program => program?.countryCode === countryCode);\n      if (!program || !program.requiredTemplate) {\n        return;\n      }\n\n      const legalTextElement = document.querySelector('#legal-text-' + fieldName);\n      if (!legalTextElement) {\n        return;\n      }\n\n      // Remove HTML tags and clean up the text\n      const divRegex = new RegExp('</?[div][^>]*>', 'gi');\n      const fullAnchorRegex = new RegExp('<a.*?</a>', 'g');\n      const anchorRegex = new RegExp('<a href=\"(.*?)\" target=\"(.*?)\">(.*?)</a>');\n\n      const template = program.requiredTemplate.replace(divRegex, '');\n\n      legalTextElement.textContent = '';\n      const parts = template.split(/(<a href=\".*?\" target=\".*?\">.*?<\\/a>)/g);\n      parts.forEach(function(part) {\n        if (!part) {\n          return;\n        }\n        const anchorMatch = part.match(/<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\\/a>/);\n        if (anchorMatch) {\n          const linkElement = document.createElement('a');\n          linkElement.href = sanitizeUrl(anchorMatch[1]);\n          linkElement.target = sanitizeHtml(anchorMatch[2]);\n          linkElement.textContent = sanitizeHtml(anchorMatch[3]);\n          legalTextElement.appendChild(linkElement);\n        } else {\n          legalTextElement.appendChild(document.createTextNode(part));\n        }\n      });\n\n    }\n\n    function generateDropdownOptions(smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return '';\n      }\n\n      return smsProgramData.map(program => {\n        const flag = getCountryUnicodeFlag(program.countryCode);\n        const countryName = getCountryName(program.countryCode);\n        const callingCode = program.countryCallingCode || '';\n        // Sanitize all values to prevent XSS\n        const sanitizedCountryCode = sanitizeHtml(program.countryCode || '');\n        const sanitizedCountryName = sanitizeHtml(countryName || '');\n        const sanitizedCallingCode = sanitizeHtml(callingCode || '');\n        return '<option value=\"' + sanitizedCountryCode + '\">' + sanitizedCountryName + ' ' + sanitizedCallingCode + '</option>';\n      }).join('');\n    }\n\n    function getCountryName(countryCode) {\n      if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) {\n        for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) {\n          if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) {\n            return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name;\n          }\n        }\n      }\n      return countryCode;\n    }\n\n    function getDefaultPlaceholder(countryCode) {\n      if (!countryCode || typeof countryCode !== 'string') {\n        return '+1 000 000 0000'; // Default US placeholder\n      }\n\n            var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el código de país ES +34 antes del número de teléfono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n      ];\n\n      const selectedPlaceholder = mockPlaceholders.find(function(item) {\n        return item && item.countryCode === countryCode;\n      });\n\n      return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder;\n    }\n\n    function updatePlaceholder(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      const phoneInput = document.querySelector('#mce-' + fieldName);\n      if (!phoneInput) {\n        return;\n      }\n\n      const placeholder = getDefaultPlaceholder(countryCode);\n      if (placeholder) {\n        phoneInput.placeholder = placeholder;\n      }\n    }\n\n    function updateCountryCodeInstruction(countryCode, fieldName) {\n      updatePlaceholder(countryCode, fieldName);\n\n    }\n\n    function getDefaultHelpText(countryCode) {\n      var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el código de país ES +34 antes del número de teléfono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n      ];\n\n      if (!countryCode || typeof countryCode !== 'string') {\n        return mockPlaceholders[0].helpText;\n      }\n\n      const selectedHelpText = mockPlaceholders.find(function(item) {\n          return item && item.countryCode === countryCode;\n        });\n\n        return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText;\n    }\n\n    function setDefaultHelpText(countryCode) {\n      const helpTextSpan = document.querySelector('#help-text');\n      if (!helpTextSpan) {\n        return;\n      }\n\n    }\n\n    function updateHelpTextCountryCode(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n\n      setDefaultHelpText(countryCode);\n    }\n\n    function initializeSmsPhoneDropdown(fieldName) {\n      if (!fieldName || typeof fieldName !== 'string') {\n        return;\n      }\n\n      const dropdown = document.querySelector('#country-select-' + fieldName);\n      const displayFlag = document.querySelector('#flag-display-' + fieldName);\n\n      if (!dropdown || !displayFlag) {\n        return;\n      }\n\n      const smsPhoneData = window.MC?.smsPhoneData;\n      if (smsPhoneData && smsPhoneData.programs && Array.isArray(smsPhoneData.programs)) {\n        dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs);\n      }\n\n      const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs);\n      if (defaultProgram && defaultProgram.countryCode) {\n        dropdown.value = defaultProgram.countryCode;\n\n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag');\n        }\n\n        updateSmsLegalText(defaultProgram.countryCode, fieldName);\n        updatePlaceholder(defaultProgram.countryCode, fieldName);\n        updateCountryCodeInstruction(defaultProgram.countryCode, fieldName);\n      }\n\n      var smsNotRequiredRemoveCountryCodeEnabled = true;\n      var smsField = Object.values({\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"0\",\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"1\",\"field_type\":\"merge\"},\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"2\",\"field_type\":\"merge\"},\"ROLE\":{\"name\":\"ROLE\",\"label\":\"Role\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Role\",\"choices\":[{\"value\":\"GP\",\"label\":\"GP\"},{\"value\":\"Nurse\",\"label\":\"Nurse\"},{\"value\":\"Dietitian\",\"label\":\"Dietitian\"},{\"value\":\"Nutritionist\",\"label\":\"Nutritionist\"},{\"value\":\"Health Coach\",\"label\":\"Health Coach\"},{\"value\":\"Practice Manager\",\"label\":\"Practice Manager\"},{\"value\":\"Specialist\",\"label\":\"Specialist\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":7,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"3\",\"field_type\":\"merge\"},\"ORG\":{\"name\":\"ORG\",\"label\":\"Organiation\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Organisation\",\"merge_id\":8,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"4\",\"field_type\":\"merge\"},\"REGION\":{\"name\":\"REGION\",\"label\":\"Region\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Region\",\"choices\":[{\"value\":\"Northland\",\"label\":\"Northland\"},{\"value\":\"Auckland\",\"label\":\"Auckland\"},{\"value\":\"Waikato\",\"label\":\"Waikato\"},{\"value\":\"Bay of Plenty\",\"label\":\"Bay of Plenty\"},{\"value\":\"Gisborne\",\"label\":\"Gisborne\"},{\"value\":\"Hawke's Bay\",\"label\":\"Hawke's Bay\"},{\"value\":\"Taranaki\",\"label\":\"Taranaki\"},{\"value\":\"Manawatū-Whanganui\",\"label\":\"Manawatū-Whanganui\"},{\"value\":\"Wellington\",\"label\":\"Wellington\"},{\"value\":\"Tasman\",\"label\":\"Tasman\"},{\"value\":\"Nelson\",\"label\":\"Nelson\"},{\"value\":\"Marlborough\",\"label\":\"Marlborough\"},{\"value\":\"West Coast\",\"label\":\"West Coast\"},{\"value\":\"Canterbury\",\"label\":\"Canterbury\"},{\"value\":\"Otago\",\"label\":\"Otago\"},{\"value\":\"Southland\",\"label\":\"Southland\"}],\"merge_id\":10,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"5\",\"field_type\":\"merge\"},\"SPECIALTY\":{\"name\":\"SPECIALTY\",\"label\":\"Specialty\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Specialty\",\"choices\":[{\"value\":\"Diabetes\",\"label\":\"Diabetes\"},{\"value\":\"Weight Management/Bariatrics\",\"label\":\"Weight Management/Bariatrics\"},{\"value\":\"General Practice/Primary Care\",\"label\":\"General Practice/Primary Care\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":9,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"6\",\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks & Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":164},\"PHONE\":{\"name\":\"PHONE\",\"label\":\"Phone Number\",\"helper_text\":\"\",\"type\":\"phone\",\"required\":false,\"audience_field_name\":\"Phone Number\",\"phoneformat\":\"\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":4},\"BIRTHDAY\":{\"name\":\"BIRTHDAY\",\"label\":\"Birthday\",\"helper_text\":\"\",\"type\":\"birthday\",\"required\":false,\"audience_field_name\":\"Birthday\",\"dateformat\":\"MM/DD\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":5},\"COMPANY\":{\"name\":\"COMPANY\",\"label\":\"Company\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Company\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });\n      var isRequired = smsField ? smsField.required : false;\n      var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n\n      var phoneInput = document.querySelector('#mce-' + fieldName);\n      if (phoneInput && defaultProgram.countryCallingCode && shouldAppendCountryCode) {\n        phoneInput.value = defaultProgram.countryCallingCode;\n      }\n\n      displayFlag?.addEventListener('click', function(e) {\n        dropdown.focus();\n      });\n\n      dropdown?.addEventListener('change', function() {\n        const selectedCountry = this.value;\n\n        if (!selectedCountry || typeof selectedCountry !== 'string') {\n          return;\n        }\n\n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(selectedCountry);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag');\n        }\n\n        const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) {\n          return program && program.countryCode === selectedCountry;\n        });\n\n        var smsNotRequiredRemoveCountryCodeEnabled = true;\n        var smsField = Object.values({\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"0\",\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"1\",\"field_type\":\"merge\"},\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"2\",\"field_type\":\"merge\"},\"ROLE\":{\"name\":\"ROLE\",\"label\":\"Role\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Role\",\"choices\":[{\"value\":\"GP\",\"label\":\"GP\"},{\"value\":\"Nurse\",\"label\":\"Nurse\"},{\"value\":\"Dietitian\",\"label\":\"Dietitian\"},{\"value\":\"Nutritionist\",\"label\":\"Nutritionist\"},{\"value\":\"Health Coach\",\"label\":\"Health Coach\"},{\"value\":\"Practice Manager\",\"label\":\"Practice Manager\"},{\"value\":\"Specialist\",\"label\":\"Specialist\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":7,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"3\",\"field_type\":\"merge\"},\"ORG\":{\"name\":\"ORG\",\"label\":\"Organiation\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Organisation\",\"merge_id\":8,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"4\",\"field_type\":\"merge\"},\"REGION\":{\"name\":\"REGION\",\"label\":\"Region\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Region\",\"choices\":[{\"value\":\"Northland\",\"label\":\"Northland\"},{\"value\":\"Auckland\",\"label\":\"Auckland\"},{\"value\":\"Waikato\",\"label\":\"Waikato\"},{\"value\":\"Bay of Plenty\",\"label\":\"Bay of Plenty\"},{\"value\":\"Gisborne\",\"label\":\"Gisborne\"},{\"value\":\"Hawke's Bay\",\"label\":\"Hawke's Bay\"},{\"value\":\"Taranaki\",\"label\":\"Taranaki\"},{\"value\":\"Manawatū-Whanganui\",\"label\":\"Manawatū-Whanganui\"},{\"value\":\"Wellington\",\"label\":\"Wellington\"},{\"value\":\"Tasman\",\"label\":\"Tasman\"},{\"value\":\"Nelson\",\"label\":\"Nelson\"},{\"value\":\"Marlborough\",\"label\":\"Marlborough\"},{\"value\":\"West Coast\",\"label\":\"West Coast\"},{\"value\":\"Canterbury\",\"label\":\"Canterbury\"},{\"value\":\"Otago\",\"label\":\"Otago\"},{\"value\":\"Southland\",\"label\":\"Southland\"}],\"merge_id\":10,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"5\",\"field_type\":\"merge\"},\"SPECIALTY\":{\"name\":\"SPECIALTY\",\"label\":\"Specialty\",\"helper_text\":\"\",\"type\":\"dropdown\",\"required\":false,\"audience_field_name\":\"Specialty\",\"choices\":[{\"value\":\"Diabetes\",\"label\":\"Diabetes\"},{\"value\":\"Weight Management/Bariatrics\",\"label\":\"Weight Management/Bariatrics\"},{\"value\":\"General Practice/Primary Care\",\"label\":\"General Practice/Primary Care\"},{\"value\":\"Other\",\"label\":\"Other\"}],\"merge_id\":9,\"help_text_enabled\":false,\"enabled\":true,\"order\":\"6\",\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks & Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":164},\"PHONE\":{\"name\":\"PHONE\",\"label\":\"Phone Number\",\"helper_text\":\"\",\"type\":\"phone\",\"required\":false,\"audience_field_name\":\"Phone Number\",\"phoneformat\":\"\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":4},\"BIRTHDAY\":{\"name\":\"BIRTHDAY\",\"label\":\"Birthday\",\"helper_text\":\"\",\"type\":\"birthday\",\"required\":false,\"audience_field_name\":\"Birthday\",\"dateformat\":\"MM/DD\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":5},\"COMPANY\":{\"name\":\"COMPANY\",\"label\":\"Company\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Company\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":6}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });\n        var isRequired = smsField ? smsField.required : false;\n        var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n\n        var phoneInput = document.querySelector('#mce-' + fieldName);\n        if (phoneInput && selectedProgram.countryCallingCode && shouldAppendCountryCode) {\n          phoneInput.value = selectedProgram.countryCallingCode;\n        }\n\n        updateSmsLegalText(selectedCountry, fieldName);\n        updatePlaceholder(selectedCountry, fieldName);\n        updateCountryCodeInstruction(selectedCountry, fieldName);\n      });\n    }\n\n    document.addEventListener('DOMContentLoaded', function() {\n      const smsPhoneFields = document.querySelectorAll('[id^=\"country-select-\"]');\n\n      smsPhoneFields.forEach(function(dropdown) {\n        const fieldName = dropdown?.id.replace('country-select-', '');\n        initializeSmsPhoneDropdown(fieldName);\n      });\n    });\n    </script></div>\n"}},{"__typename":"ContentfulRenderRawHtml","id":"a5549610-8f17-5869-9f9e-76c0ed098028","title":"Privacy Policy","html":{"html":"<div id=\"mc_disclaimer\">By continuing I agree to the My Food Bag <a href=\"https://www.myfoodbag.co.nz/privacy\">Privacy Policy</a></div>"}}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"53005cc9-0de8-5d96-94bd-b2c703ffc2b2","title":"Learn about our other health solutions","childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":null,"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":null,"actionButton":null,"content":[{"__typename":"ContentfulHeroCard","id":"c096b432-5383-5e96-ade5-76fe3c0ed33f","title":"Fresh Start","description":null,"image":{"id":"da0eb78a-9831-53f0-8d22-2f0215990964","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/SanvYEMmZCvFkFt8VeXz6/c4544c78c6fcc0416ee19dfadf253088/HPN_Icons_Fresh_Start.svg"}},"color":null,"cardType":"Small","button":{"label":"Learn More","link":{"relativePath":null,"absoluteUrl":"https://www.freshstart.nz/low-cal"},"scrollTarget":null,"buttonType":null},"alignment":null},{"__typename":"ContentfulHeroCard","id":"29b60a35-c070-5603-b5e9-0159ecb903c4","title":"My Gluten Free Bag","description":null,"image":{"id":"5c10f3c4-bf22-51e2-9d62-e506dbed3c1e","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/3zGXhKWKcjvx9cpve3TVQS/b609ea1ea95a8712a71ab641966f303d/HPN_Icons_Gluten_Free.svg"}},"color":null,"cardType":"Small","button":{"label":"Learn More","link":{"relativePath":"/meal-kits/gluten-free-HPN","absoluteUrl":null},"scrollTarget":null,"buttonType":"Primary"},"alignment":null},{"__typename":"ContentfulHeroCard","id":"a72c4f71-5c62-5c25-bdca-b054977b48dd","title":"Diabetes","description":null,"image":{"id":"e1780c67-5569-5c9d-ba27-5db27a68bd24","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/3wjAraYHe8Btj45QDYWKV4/1f1fb6a9286e8f7df1e93768362c5911/HPN_Icons_Diabetes.svg"}},"color":null,"cardType":"Small","button":{"label":"Learn More","link":{"relativePath":"/meal-kits/diabetes-plan/HPN","absoluteUrl":null},"scrollTarget":null,"buttonType":"Primary"},"alignment":null}],"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"},{"__typename":"ContentfulPageSection","id":"186449c0-d2ec-5190-bf9e-c566fbfd81f1","title":null,"childContentfulPageSectionSubtitleTextNode":null,"backgroundColor":{"colorHex":"#FBFAF9"},"wrapContent":true,"fullWidth":null,"childContentfulPageSectionDescriptionTextNode":{"description":"References: 1. Mozaffarian D et al. Nutritional priorities to support GLP-1 therapy for obesity: A joint Advisory from the American College of Lifestyle Medicine, the American Society for Nutrition, the Obesity Medicine Association, and The Obesity Society. Obesity (Silver Spring). 2025; 1-29. 2. Almandoz JP et al. Nutritional considerations with antiobesity medications. Obesity (Silver Spring). 2024 Sep;32(9):1613-1631."},"actionButton":null,"content":null,"backgroundImage":null,"leftImage":null,"rightImage":null,"variant":"default"}],"pageSettings":null,"metadata":{"title":"Smart Portions Meal Plan - Fresh Start","description":{"description":"High protein, dietitian-approved meals for people with a reduced appetite. Get nourishing, satisfying & comforting meals delivered."},"sharingLinkImage":{"id":"4f67986c-cf0c-5383-a4d9-5369bd2391df","__typename":"ContentfulResponsiveImageSet","alternateText":"Smart Portions Banner Image Set","small":{"id":"a4bf5777-41b9-5501-b5b8-29dc678fac62","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/72UluEkJsFTCZNaXuztUsv/ea19be7bd6f49d8bbdec64a4ecb976e6/FS_Smart_Portions_Jumbotron_S.jpg"}},"medium":{"id":"fe0edc75-4477-5951-8ddb-35a07ede8b13","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/2qMDyUBJ8wby14iZLLTbCG/f7fd9b8f24f2d1c26468cdef7ae3eace/FS_Smart_Portions_Jumbotron_M.jpg"}},"large":{"id":"5a8aa33a-5283-54b7-98fd-fae55e1eca0d","description":"","file":{"url":"//images.ctfassets.net/h5bq1gt24416/hpRfBZqLy9N8pYu3Zp6yE/ca5f3d6c2f565b1e323646eec2dfc350/FS_Smart_Portions_Jumbotron_L.jpg"}}},"type":"article","canonicalUrlLink":{"relativePath":"/smart-portions-hpn","absoluteUrl":null},"allowIndexing":false,"keywords":null}}},"pageContext":{"id":"ca77a453-7934-566d-99c7-48f2040dd491"}},"staticQueryHashes":["2874938835","3353766699","347068148","3475688630","3535798881","3593756770","3593756770","3593756770","3606099579","3680153258","586106881","586106881"]}